home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / objects / r3cubmap.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  5.3 KB  |  199 lines

  1.  
  2. // JavaScript wrapper for r3cubmap.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_CUBEMAPPING_H = 1;
  7. include("real/objects/r3map.js")
  8.  
  9.  
  10. var R3CLID_CUBEMAPPING = 808;
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. R3CUBMAPA_P0 = 808500;
  19. function SetR3CUBMAPA_P0(value) {
  20.   R3Set(this.r3obj, R3CUBMAPA_P0, value, R3TID_VECTOR, R3TNF_ARRAY); 
  21. }
  22.  
  23. function GetR3CUBMAPA_P0() {
  24.   return R3Get(this.r3obj, R3CUBMAPA_P0, R3TID_VECTOR, R3TNF_ARRAY); 
  25. }
  26.  
  27. R3CUBMAPA_P1 = 808501;
  28. function SetR3CUBMAPA_P1(value) {
  29.   R3Set(this.r3obj, R3CUBMAPA_P1, value, R3TID_VECTOR, 0); 
  30. }
  31.  
  32. function GetR3CUBMAPA_P1() {
  33.   return R3Get(this.r3obj, R3CUBMAPA_P1, R3TID_VECTOR, 0); 
  34. }
  35.  
  36. R3CUBMAPA_P2 = 808502;
  37. function SetR3CUBMAPA_P2(value) {
  38.   R3Set(this.r3obj, R3CUBMAPA_P2, value, R3TID_VECTOR, 0); 
  39. }
  40.  
  41. function GetR3CUBMAPA_P2() {
  42.   return R3Get(this.r3obj, R3CUBMAPA_P2, R3TID_VECTOR, 0); 
  43. }
  44.  
  45. R3CUBMAPA_P3 = 808503;
  46. function SetR3CUBMAPA_P3(value) {
  47.   R3Set(this.r3obj, R3CUBMAPA_P3, value, R3TID_VECTOR, 0); 
  48. }
  49.  
  50. function GetR3CUBMAPA_P3() {
  51.   return R3Get(this.r3obj, R3CUBMAPA_P3, R3TID_VECTOR, 0); 
  52. }
  53.  
  54. R3CUBMAPA_MatFront = 808504;
  55. function SetR3CUBMAPA_MatFront(value) {
  56.   R3Set(this.r3obj, R3CUBMAPA_MatFront, value, R3TID_STRING, 0); 
  57. }
  58.  
  59. function GetR3CUBMAPA_MatFront() {
  60.   return R3Get(this.r3obj, R3CUBMAPA_MatFront, R3TID_STRING, 0); 
  61. }
  62.  
  63. R3CUBMAPA_MatBack = 808505;
  64. function SetR3CUBMAPA_MatBack(value) {
  65.   R3Set(this.r3obj, R3CUBMAPA_MatBack, value, R3TID_STRING, 0); 
  66. }
  67.  
  68. function GetR3CUBMAPA_MatBack() {
  69.   return R3Get(this.r3obj, R3CUBMAPA_MatBack, R3TID_STRING, 0); 
  70. }
  71.  
  72. R3CUBMAPA_MatTop = 808506;
  73. function SetR3CUBMAPA_MatTop(value) {
  74.   R3Set(this.r3obj, R3CUBMAPA_MatTop, value, R3TID_STRING, 0); 
  75. }
  76.  
  77. function GetR3CUBMAPA_MatTop() {
  78.   return R3Get(this.r3obj, R3CUBMAPA_MatTop, R3TID_STRING, 0); 
  79. }
  80.  
  81. R3CUBMAPA_MatBottom = 808507;
  82. function SetR3CUBMAPA_MatBottom(value) {
  83.   R3Set(this.r3obj, R3CUBMAPA_MatBottom, value, R3TID_STRING, 0); 
  84. }
  85.  
  86. function GetR3CUBMAPA_MatBottom() {
  87.   return R3Get(this.r3obj, R3CUBMAPA_MatBottom, R3TID_STRING, 0); 
  88. }
  89.  
  90. R3CUBMAPA_MatLeft = 808508;
  91. function SetR3CUBMAPA_MatLeft(value) {
  92.   R3Set(this.r3obj, R3CUBMAPA_MatLeft, value, R3TID_STRING, 0); 
  93. }
  94.  
  95. function GetR3CUBMAPA_MatLeft() {
  96.   return R3Get(this.r3obj, R3CUBMAPA_MatLeft, R3TID_STRING, 0); 
  97. }
  98.  
  99. R3CUBMAPA_MatRight = 808509;
  100. function SetR3CUBMAPA_MatRight(value) {
  101.   R3Set(this.r3obj, R3CUBMAPA_MatRight, value, R3TID_STRING, 0); 
  102. }
  103.  
  104. function GetR3CUBMAPA_MatRight() {
  105.   return R3Get(this.r3obj, R3CUBMAPA_MatRight, R3TID_STRING, 0); 
  106. }
  107.  
  108. R3CUBMAPA_EnvironmentMap = 808510;
  109. function SetR3CUBMAPA_EnvironmentMap(value) {
  110.   R3Set(this.r3obj, R3CUBMAPA_EnvironmentMap, value, R3TID_INTEGER, 0); 
  111. }
  112.  
  113. function GetR3CUBMAPA_EnvironmentMap() {
  114.   return R3Get(this.r3obj, R3CUBMAPA_EnvironmentMap, R3TID_INTEGER, 0); 
  115. }
  116.  
  117. R3CUBMAPA_Width = 808511;
  118. function SetR3CUBMAPA_Width(value) {
  119.   R3Set(this.r3obj, R3CUBMAPA_Width, value, R3TID_FLOAT, 0); 
  120. }
  121.  
  122. function GetR3CUBMAPA_Width() {
  123.   return R3Get(this.r3obj, R3CUBMAPA_Width, R3TID_FLOAT, 0); 
  124. }
  125.  
  126. R3CUBMAPA_Height = 808512;
  127. function SetR3CUBMAPA_Height(value) {
  128.   R3Set(this.r3obj, R3CUBMAPA_Height, value, R3TID_FLOAT, 0); 
  129. }
  130.  
  131. function GetR3CUBMAPA_Height() {
  132.   return R3Get(this.r3obj, R3CUBMAPA_Height, R3TID_FLOAT, 0); 
  133. }
  134.  
  135. R3CUBMAPA_Depth = 808513;
  136. function SetR3CUBMAPA_Depth(value) {
  137.   R3Set(this.r3obj, R3CUBMAPA_Depth, value, R3TID_FLOAT, 0); 
  138. }
  139.  
  140. function GetR3CUBMAPA_Depth() {
  141.   return R3Get(this.r3obj, R3CUBMAPA_Depth, R3TID_FLOAT, 0); 
  142. }
  143.  
  144. R3CUBMAPA_Projection = 808514;
  145. function SetR3CUBMAPA_Projection(value) {
  146.   R3Set(this.r3obj, R3CUBMAPA_Projection, value, R3TID_INTEGER, 0); 
  147. }
  148.  
  149. function GetR3CUBMAPA_Projection() {
  150.   return R3Get(this.r3obj, R3CUBMAPA_Projection, R3TID_INTEGER, 0); 
  151. }
  152.  
  153. var R3CBPROJ_PYRAMID = 0;
  154. var R3CBPROJ_ENVMAP = 1;
  155. var R3CBPROJ_BYNORMAL = 2;
  156.  
  157.  
  158. function r3Cubemapping () { 
  159.    this.base = r3God;
  160.    if(arguments.length) {
  161.       this.base(R3CLID_CUBEMAPPING, arguments);
  162.    }
  163.    // Methods
  164.  
  165.    // Attributes
  166.    this.GetP0=GetR3CUBMAPA_P0;
  167.    this.SetP0=SetR3CUBMAPA_P0;
  168.    this.GetP1=GetR3CUBMAPA_P1;
  169.    this.SetP1=SetR3CUBMAPA_P1;
  170.    this.GetP2=GetR3CUBMAPA_P2;
  171.    this.SetP2=SetR3CUBMAPA_P2;
  172.    this.GetP3=GetR3CUBMAPA_P3;
  173.    this.SetP3=SetR3CUBMAPA_P3;
  174.    this.GetMatFront=GetR3CUBMAPA_MatFront;
  175.    this.SetMatFront=SetR3CUBMAPA_MatFront;
  176.    this.GetMatBack=GetR3CUBMAPA_MatBack;
  177.    this.SetMatBack=SetR3CUBMAPA_MatBack;
  178.    this.GetMatTop=GetR3CUBMAPA_MatTop;
  179.    this.SetMatTop=SetR3CUBMAPA_MatTop;
  180.    this.GetMatBottom=GetR3CUBMAPA_MatBottom;
  181.    this.SetMatBottom=SetR3CUBMAPA_MatBottom;
  182.    this.GetMatLeft=GetR3CUBMAPA_MatLeft;
  183.    this.SetMatLeft=SetR3CUBMAPA_MatLeft;
  184.    this.GetMatRight=GetR3CUBMAPA_MatRight;
  185.    this.SetMatRight=SetR3CUBMAPA_MatRight;
  186.    this.GetEnvironmentMap=GetR3CUBMAPA_EnvironmentMap;
  187.    this.SetEnvironmentMap=SetR3CUBMAPA_EnvironmentMap;
  188.    this.GetWidth=GetR3CUBMAPA_Width;
  189.    this.SetWidth=SetR3CUBMAPA_Width;
  190.    this.GetHeight=GetR3CUBMAPA_Height;
  191.    this.SetHeight=SetR3CUBMAPA_Height;
  192.    this.GetDepth=GetR3CUBMAPA_Depth;
  193.    this.SetDepth=SetR3CUBMAPA_Depth;
  194.    this.GetProjection=GetR3CUBMAPA_Projection;
  195.    this.SetProjection=SetR3CUBMAPA_Projection;
  196. }
  197.  
  198. r3Cubemapping.prototype=new r3Mapping;
  199. // r3cubmap.h_H